﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Tyt
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("iexplore.exe", "http://syzs.qq.com/");
        }
        int bushu = 1;
        private void Form2_Load(object sender, EventArgs e)
        {
            xianshi();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            bushu++;
            xianshi();
        }
        void xianshi()
        {
            if (bushu < 1)
            {
                bushu = 1;
            }
            if (bushu > 8)
            {
                bushu = 8;
            }
            if (bushu == 1)
                button1.Enabled = false;
            else
                button1.Enabled = true;
            if (bushu == 8)
                button2.Enabled = false;
            else
                button2.Enabled = true;
            switch (bushu)
            {
                case 1:
                    picbu.Image = global::Tyt.Properties.Resources._1;
                    lbbu.Text = "第1步、雷电模拟器，官方地址：";
                    linkLabel2.Visible = true;
                    break;
                case 2:
                    picbu.Image = global::Tyt.Properties.Resources._2;
                    lbbu.Text = "第2步、安装微信（安装的有可能不是最新版微信，一定要注意升级！！）";
                    linkLabel2.Visible = false;
                    break;
                case 3:
                    picbu.Image = global::Tyt.Properties.Resources._3;
                    lbbu.Text = "第3步、打开微信（一定要最新版的微信，先升级一下）";
                    linkLabel2.Visible = false;
                    break;
                case 4:
                    picbu.Image = global::Tyt.Properties.Resources._4;
                    lbbu.Text = "第4步、登陆微信，第一次登陆需要手机验证";
                    linkLabel2.Visible = false;
                    break;
                case 5:
                    picbu.Image = global::Tyt.Properties.Resources._5;
                    lbbu.Text = "第5步、打开跳一跳，运行辅助工具，一定要注意，如果加载不成功，就需要升级微信。";
                    linkLabel2.Visible = false;
                    break;
                case 6:
                    picbu.Image = global::Tyt.Properties.Resources._6;
                    lbbu.Text = "第6步、把鼠标放在跳跳人的脚下面，按下空格键";
                    linkLabel2.Visible = false;
                    break;
                case 7:
                    picbu.Image = global::Tyt.Properties.Resources._7;
                    lbbu.Text = "第7步、把鼠标放在目的位置的下面，按下空格键，享受跳跃吧！";
                    linkLabel2.Visible = false;
                    break;
                case 8:
                    picbu.Image = global::Tyt.Properties.Resources._8;
                    lbbu.Text = "";
                    linkLabel2.Visible = false;
                    break;
                default:
                    break;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            bushu--;
            xianshi();
        }
    }
}
